package service

import (
	"go-monitor/common/utility"
	"go-monitor/server/g"
)

var (
	Redis *utility.Redis
)

// InitRedis 初始化Redis
func InitRedis() {
	addr := utility.DesDecryptTripleGet(g.Config().Redis.Addr)
	pwd := utility.DesDecryptTripleGet(g.Config().Redis.Pwd)
	Redis = utility.New(addr, pwd, 0)
}
